//
//  HomepartBtn.m
//  BaxTer
//
//  Created by wsj2015 on 16/9/1.
//  Copyright © 2016年 陈武琦. All rights reserved.
//

#import "HomepartBtn.h"

@implementation HomepartBtn





- (void)layoutSubviews{
  
    //
    [super layoutSubviews];
    CGFloat f = kScreenFactor;
    CGFloat w = self.bounds.size.width;
    CGFloat h = self.bounds.size.height;
   
    self.imageView.center = CGPointMake(w /2, h/2 - 10 *f);
    [self.imageView sizeToFit];
    
    self.titleLabel.center = CGPointMake(w /2, h- 20 *f);
    
//    [self.titleLabel sizeToFit];
    self.titleLabel.bounds  =CGRectMake(0, 0, w, 17);
 
    WSJLog(@"---%@",NSStringFromCGRect(self.titleLabel.frame));
  

}

@end
